package com.tj.bo.user.server.dao.impl;
import com.fqgj.common.base.AbstractBaseMapper;
import com.tj.bo.user.server.dao.UserActivityReadDao;
import com.tj.bo.user.server.entity.UserActivityReadEntity;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
* User: xulin
* Date: 2020-08-28
* Time: 16:05:11.383
*/

@Repository
public class UserActivityReadDaoImpl extends AbstractBaseMapper<UserActivityReadEntity> implements UserActivityReadDao {

    @Override
    public UserActivityReadEntity getActivityReadByUserCodeAndActivityId(Long activityId, String userCode, Date currentDate) {
        Map params = new HashMap();
        params.put("userCode",userCode);
        params.put("activityId",activityId);
        params.put("currentDate",currentDate);
        return getSqlSession().selectOne(getStatement("getActivityReadByUserCodeAndActivityId"),params);
    }
}